package com.guigu.youxuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.youxuan.pojo.OrderInfo;
import com.guigu.youxuan.common.utils.PageUtils;
import com.guigu.youxuan.pojo.PurchaseOrder;
import com.guigu.youxuan.pojo.SupplierInfo;
import com.guigu.youxuan.pojo.dto.PurchaseAndDetailDto;
import com.guigu.youxuan.pojo.dto.PurchaseReviewDto;
import com.guigu.youxuan.pojo.dto.SupplierGoodsDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface IPurchaseOrderService extends IService<PurchaseOrder> {
    /**
     * 供应商订单分页查询采购订单信息
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageInfo<PurchaseOrder> SupplierOrderListPage(int sysUsersId,int currentPage, int pageSize);


    String getMaxDesignId();

    void createPurchase(PurchaseOrder purchaseOrder, List<SupplierGoodsDto> supplierGoodsList);

    PageUtils<PurchaseReviewDto> queryPurchaseReview(SupplierInfo supplierInfo, int currentPage, int pageSize);

    PurchaseAndDetailDto queryPurchaseAndDetail(String purchaseId);

    void purchaseReviewOk(PurchaseOrder purchaseOrder);

    PageUtils<PurchaseReviewDto> queryPurchaseReviewOk(SupplierInfo supplierInfo, int currentPage, int pageSize);
}
